package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.TPrescriptionDrugInfo;
import com.ruoyi.system.mapper.TPrescriptionDrugInfoMapper;
import com.ruoyi.system.service.ITPrescriptionDrugInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TPrescriptionDrugInfoServiceImpl implements ITPrescriptionDrugInfoService {
    @Autowired
    private TPrescriptionDrugInfoMapper tPrescriptionDrugInfoMapper;
    @Override
    public int updateTPrescriptionDrugInfo(TPrescriptionDrugInfo tPrescriptionDrugInfo) {
        return tPrescriptionDrugInfoMapper.updateTPrescriptionDrugInfo(tPrescriptionDrugInfo);
    }

    @Override
    public int updateDrugInfo(TPrescriptionDrugInfo tPrescriptionDrugInfo) {
        return tPrescriptionDrugInfoMapper.updateDrugInfo(tPrescriptionDrugInfo);
    }

    @Override
    public int updateOverDays(TPrescriptionDrugInfo tPrescriptionDrugInfo) {
        return tPrescriptionDrugInfoMapper.updateOverDays(tPrescriptionDrugInfo);
    }

    @Override
    public int updataDrugNumber(TPrescriptionDrugInfo tPrescriptionDrugInfo) {
        return  tPrescriptionDrugInfoMapper.updataDrugNumber(tPrescriptionDrugInfo);
    }
}
